﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DomainModelDemo.UI.Web
{
    public interface IPerson
    {
        string ShowName();
    }
    public class Student : IPerson
    {
        public string ShowName()
        {
            return "Student";
        }
    }
    public class Teacher : IPerson
    {
        public string ShowName()
        {
            return "Teacher";
        }
    }
    public class PersonService
    {
        public IPerson Person { get; set; }
        public string ShowName()
        {
            return Person.ShowName();
        }
    }
}